public class HomeWork13_06{
    public static void main(String[] args){
        int[] arr = new int[]{1, 2, 3, 4, 5, 6};
        arr = ReverseArr.reverseArr(arr);
        for(int item : arr){
            System.out.println(item);
        }
    }
}

class ReverseArr{
    public static int[] reverseArr(int[] arr){
        for(int i = 0, j = arr.length - 1; i < arr.length/2; i++, j--){
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
        }
        return arr;
    }
}